import request from "utils/request";
//个人主页
export function accountUser_getById(params = {}) {
  return request({
    url: 'api/accountUser/getById',
    method: 'get',
    params,
  })
}
//帮帮分类
export function category_getListByCon(params = {}) {
  return request({
    url: 'api/category/getListByCon',
    method: 'get',
    params
  })
}
//城市列表
export function provinceCity_getListByProvince(params = {}) {
  return request({
    url: 'api/provinceCity/getListByProvince',
    method: 'get',
    params,
  })
}
//我的作品列表
export function article_getMyArticleByCon(params = {}, loading=true) {
  return request({
    url: 'api/article/getMyArticleByCon',
    method: 'get',
    params,
    loading
  })
}
//我的订单列表
export function orders_getListByCon(params = {}, loading=true) {
  return request({
    url: 'api/orders/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//订单详情
export function orders_getById(params = {}) {
  return request({
    url: 'api/orders/getById',
    method: 'get',
    params
  })
}
//删除订单
export function orders_delOrder(data = {}) {
  return request({
    url: 'api/orders/delOrder',
    method: 'post',
    data,
  })
}
//我的拜师
export function buyRecord_getListByCon(params = {}, loading= true) {
  return request({
    url: 'api/buyRecord/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//学习记录
export function browsingHistory_getListByCon(params = {}, loading = true) {
  return request({
    url: 'api/browsingHistory/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//意见反馈
export function feedback_giveOpinion(data = {}) {
  return request({
    url: 'api/feedback/giveOpinion',
    method: 'post',
    data,
  })
}
//关于我们
export function aboutUs_getNewest(params = {}, loading = true) {
  return request({
    url: 'api/aboutUs/getNewest',
    method: 'get',
    params,
    loading
  })
}
